84% wp-perfect-plugin

Code Review | W3P SEO

WordPress plugin W3P SEO scored84%from 54 tests.

About plugin

  • Plugin page: wp-perfect-plugin
  • Plugin version: 1.7.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: May 13, 2011
  • Latest release: Nov 28, 2023
  • Number of updates: 102
  • Update frequency: every 45.0 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /7,733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.30MB] [CPU: ▲2.04ms] Passed 4 tests

Server-side resources used by W3P SEO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3248.05 ▲4.79
Dashboard /wp-admin3.60 ▲0.2958.17 ▲2.35
Posts /wp-admin/edit.php3.71 ▲0.3552.24 ▲5.90
Add New Post /wp-admin/post-new.php6.20 ▲0.3191.95 ▼1.30
Media Library /wp-admin/upload.php3.52 ▲0.2936.75 ▲2.30

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for W3P SEO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5814.68 ▲0.481.67 ▲0.0542.44 ▼2.80
Dashboard /wp-admin2,210 ▲305.51 ▼0.1597.13 ▲7.9778.53 ▲39.14
Posts /wp-admin/edit.php2,124 ▲211.95 ▼0.0736.20 ▼3.5534.18 ▼1.95
Add New Post /wp-admin/post-new.php1,557 ▲2225.32 ▲0.01689.91 ▲68.4857.28 ▼5.94
Media Library /wp-admin/upload.php1,424 ▲244.07 ▼0.1096.83 ▲0.9778.34 ▲35.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-perfect-plugin/includes/functions.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-perfect-plugin/includes/meta.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-perfect-plugin/includes/schema-breadcrumbs.php:211

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Search Engine Verification And Link Relationships), #2 (Homepage Details), #3 (Local Business Details), #4 (Analytics and Tag Management), #5 (Header/Footer Management), #6 (Open Graph), #7 (Miscellaneous), #9 (Plugin Dashboard)
Please take inspiration from this readme.txt

wp-perfect-plugin/wp-perfect-plugin.php 92% from 13 tests

"W3P SEO" version 1.7.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 253 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,304 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP93661601,917
CSS2358227
SVG401109
XML17426
JavaScript28125

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions3193.94%
▷ Anonymous functions26.06%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png13.96KB14.32KB0.00%
screenshot-7.png14.74KB15.45KB0.00%
screenshot-1.png37.22KB39.46KB0.00%
screenshot-3.png22.59KB23.16KB0.00%
screenshot-5.png15.86KB16.45KB0.00%