73% perseo-software

Code Review | PluginPerseo

WordPress plugin PluginPerseo scored73%from 54 tests.

About plugin

  • Plugin page: perseo-software
  • Plugin version: 25.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1-6.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2020
  • Latest release: Sep 16, 2022
  • Number of updates: 95
  • Update frequency: every 8.7 days
  • Top authors: perseosoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,324 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.38MB] [CPU: ▲0.18ms] Passed 4 tests

A check of server-side resources used by PluginPerseo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3738.75 ▼0.38
Dashboard /wp-admin3.69 ▲0.3849.49 ▼3.46
Posts /wp-admin/edit.php3.80 ▲0.4448.95 ▲2.84
Add New Post /wp-admin/post-new.php6.29 ▲0.4099.95 ▲12.49
Media Library /wp-admin/upload.php3.61 ▲0.3838.03 ▲1.73
Perseo Software /wp-admin/admin.php?page=mperseo_menupage3.5832.30
Parametrizacion /wp-admin/admin.php?page=3.5836.14

Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for PluginPerseo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.17 ▼1.211.69 ▼0.1639.88 ▼6.90
Dashboard /wp-admin2,235 ▲474.86 ▼1.20109.09 ▼6.4244.64 ▼1.67
Posts /wp-admin/edit.php2,121 ▲322.03 ▼0.0139.69 ▲3.9134.77 ▼3.63
Add New Post /wp-admin/post-new.php1,561 ▲2818.50 ▼4.75659.21 ▼29.6854.43 ▲1.49
Media Library /wp-admin/upload.php1,420 ▲324.22 ▼0.0697.60 ▼11.9045.76 ▲1.60
Perseo Software /wp-admin/admin.php?page=mperseo_menupage9092.0222.3924.62
Parametrizacion /wp-admin/admin.php?page=1,0682.0222.2028.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function wp_clear_scheduled_hook was called with an argument that is deprecated since version 3.0.0! This argument has changed to an array to match the behavior of the other cron functions.
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/perseo-software/PluginPerseo.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/perseo-software/PluginPerseoClientes.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (perseo-1.jpg)
Please take inspiration from this readme.txt

perseo-software/PluginPerseo.php 77% from 13 tests

The main PHP script in "PluginPerseo" version 25.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("perseo-software.php" instead of "PluginPerseo.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path folder was not found ("/lenguajes/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,212 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP63535012,097
Markdown146090
JavaScript272025

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity46.33
▷ Minimum class complexity1.00
▷ Maximum class complexity136.00
Average method complexity8.16
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin