84% pymseo

Code Review | pymSEO

WordPress plugin pymSEO scored84%from 54 tests.

About plugin

  • Plugin page: pymseo
  • Plugin version: 1.3.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 6.3.1
  • First release: Jul 10, 2018
  • Latest release: Feb 25, 2020
  • Number of updates: 66
  • Update frequency: every 9.0 days
  • Top authors: pymsol (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /1,712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲4.65ms] Passed 4 tests

This is a short check of server-side resources used by pymSEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1235.05 ▼6.54
Dashboard /wp-admin3.49 ▲0.1961.97 ▲8.37
Posts /wp-admin/edit.php3.54 ▲0.1861.22 ▲14.75
Add New Post /wp-admin/post-new.php6.08 ▲0.1993.79 ▲2.02
Media Library /wp-admin/upload.php3.42 ▲0.1951.62 ▲16.04

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

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

Browser metrics Passed 4 tests

pymSEO: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.26 ▼0.221.92 ▲0.1337.48 ▼4.32
Dashboard /wp-admin2,205 ▲315.51 ▼0.0386.30 ▼11.9469.21 ▲26.61
Posts /wp-admin/edit.php2,122 ▲221.97 ▲0.0035.30 ▲0.3836.49 ▲0.81
Add New Post /wp-admin/post-new.php1,542 ▲1623.74 ▲0.63761.72 ▲42.2753.13 ▼7.70
Media Library /wp-admin/upload.php1,422 ▲224.20 ▲0.06111.65 ▲4.1477.38 ▲26.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 261× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pymseo/includes/pagina_opciones_ux.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pymseo/includes/funciones_en_pruebas.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Minify_CacheInterface' not found in wp-content/plugins/pymseo/includes/plugins/minify/lib/Minify/Cache/APC.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/pymseo/includes/plugins/minify/lib/Minify/Controller/Files.php:31
    • > PHP Warning
      array_push() expects parameter 1 to be array, null given in wp-content/plugins/pymseo/includes/lib/enable_cache_expires.php on line 73
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pymseo/includes/pagina_opciones_crawl_budget.php on line 3
    • > PHP Warning
      array_push() expects parameter 1 to be array, null given in wp-content/plugins/pymseo/includes/lib/enable_cache_expires.php on line 110
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pymseo/includes/lib/enable_cookie_consent.php:31
    • > PHP Warning
      array_push() expects parameter 1 to be array, null given in wp-content/plugins/pymseo/includes/lib/enable_cache_expires.php on line 144
    • > PHP Warning
      array_push() expects parameter 1 to be array, null given in wp-content/plugins/pymseo/includes/lib/block_file_config.php on line 7

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 49 tag instead of maximum 10
You can look at the official readme.txt

pymseo/pymseo.php Passed 13 tests

The primary PHP file in "pymSEO" version 1.3.6 is used by WordPress to initiate all plugin functionality
85 characters long description:
pymSEO is a collection of functions that solve the most common problems of WordPress.

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
Good job! No executable or dangerous file extensions detected7,793 lines of code in 120 files:
LanguageFilesBlank linesComment linesLines of code
PHP1081,3124,0296,147
JavaScript9363511,620
CSS20025
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.11
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces5
Interfaces3
Traits0
Classes50
▷ Abstract classes12.00%
▷ Concrete classes4998.00%
▷ Final classes00.00%
Methods271
▷ Static methods4315.87%
▷ Public methods18969.74%
▷ Protected methods4817.71%
▷ Private methods3412.55%
Functions100
▷ Named functions8383.00%
▷ Anonymous functions1717.00%
Constants13
▷ Global constants17.69%
▷ Class constants1292.31%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin