10% top-rank-content-checker

Code Review | Top Rank Content Checker

WordPress plugin Top Rank Content Checker scored10%from 54 tests.

About plugin

  • Plugin page: top-rank-content-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2019
  • Latest release: Jun 7, 2019
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: ryokurosu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /490 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.97MB] [CPU: ▼55.85ms] Passed 4 tests

Server-side resources used by Top Rank Content Checker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.20 ▼33.61
Dashboard /wp-admin2.05 ▼1.306.99 ▼56.51
Posts /wp-admin/edit.php2.05 ▼1.316.18 ▼38.39
Add New Post /wp-admin/post-new.php2.05 ▼3.847.35 ▼94.90
Media Library /wp-admin/upload.php2.05 ▼1.186.99 ▼31.84
Top Rank Content Checker /wp-admin/tools.php?page=top-rank-content-checker2.056.78

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Top Rank Content Checker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.47 ▲0.111.60 ▼0.3039.17 ▼4.38
Dashboard /wp-admin2,217 ▲294.90 ▲0.00109.08 ▼9.0738.81 ▼7.55
Posts /wp-admin/edit.php2,103 ▲142.06 ▲0.0640.99 ▲4.0134.38 ▼3.12
Add New Post /wp-admin/post-new.php6,219 ▲4,70018.95 ▼4.40859.81 ▲178.2659.54 ▲5.55
Media Library /wp-admin/upload.php1,402 ▲144.38 ▲0.2298.35 ▼6.5242.91 ▼1.80
Top Rank Content Checker /wp-admin/tools.php?page=top-rank-content-checker8721.8426.4757.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=top-rank-content-checker
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/top-rank-content-checker/admin/addon.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/top-rank-content-checker/top-rank-content-checker.php:27
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/top-rank-content-checker/admin/index.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/top-rank-content-checker/admin/setting.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/top-rank-content-checker/admin/install.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (51 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

top-rank-content-checker/top-rank-content-checker.php Passed 13 tests

"Top Rank Content Checker" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
This is keyword rank checker in Classic Editor.You could view top rank contents rapidly.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin588 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP63784423
PO File1483992
JavaScript20664
CSS2069

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 1.28MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/screenshot-1.png220.67KB112.34KB▼ 49.09%
asset/icon.png122.20KB43.06KB▼ 64.77%
includes/image/install_guide_3.png92.58KB39.58KB▼ 57.25%
includes/image/install_guide_5.png141.67KB72.48KB▼ 48.84%
includes/image/install_guide_6.png118.79KB61.29KB▼ 48.41%