10% simplicy-top-posts-most-viewed

Code Review | Simplicy top posts most viewed

WordPress plugin Simplicy top posts most viewed scored10%from 54 tests.

About plugin

  • Plugin page: simplicy-top-post...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.21
  • WordPress version: 6.3.1
  • First release: Jul 1, 2011
  • Latest release: Oct 23, 2012
  • Number of updates: 10
  • Update frequency: every 48.1 days
  • Top authors: fred91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /6,764 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simplicy-top-posts-most-viewed/simplicy-top-posts-most-viewed.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; Widget_simplicy_top_post_viewed has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼56.07ms] Passed 4 tests

This is a short check of server-side resources used by Simplicy top posts most viewed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.235.97 ▼39.14
Dashboard /wp-admin2.25 ▼1.106.03 ▼55.07
Posts /wp-admin/edit.php2.25 ▼1.115.92 ▼41.67
Add New Post /wp-admin/post-new.php2.25 ▼3.647.69 ▼88.40
Media Library /wp-admin/upload.php2.25 ▼0.986.36 ▼27.56

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_widget_simplicy_top_post_viewed
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Simplicy top posts most viewed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.64 ▼0.654.20 ▲2.2939.79 ▼3.69
Dashboard /wp-admin2,211 ▲234.84 ▼0.1996.04 ▼24.7938.78 ▼9.84
Posts /wp-admin/edit.php2,091 ▲22.14 ▲0.1037.15 ▲0.4734.40 ▼1.80
Add New Post /wp-admin/post-new.php1,516 ▼317.72 ▼5.66653.76 ▲29.8955.24 ▲1.44
Media Library /wp-admin/upload.php1,384 ▼44.22 ▲0.0193.47 ▼0.4742.03 ▼3.51

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
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/simplicy-top-posts-most-viewed/simplicy-top-posts-most-viewed.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; Widget_simplicy_top_post_viewed has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_widget_simplicy_top_post_viewed
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/simplicy-top-posts-most-viewed/functions/filters.php on line 12
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/simplicy-top-posts-most-viewed/functions/filters.php on line 4
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/simplicy-top-posts-most-viewed/functions/filters.php on line 36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/simplicy-top-posts-most-viewed/simplicy-top-posts-most-viewed.php:11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/simplicy-top-posts-most-viewed/functions/filters.php on line 24
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/simplicy-top-posts-most-viewed/functions/filters.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/simplicy-top-posts-most-viewed/functions/filters.php on line 36
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/simplicy-top-posts-most-viewed/functions/filters.php on line 24
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/simplicy-top-posts-most-viewed/functions/filters.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Example of display in the panel administrator of your blog.
    )
Please take inspiration from this readme.txt

simplicy-top-posts-most-viewed/simplicy-top-posts-most-viewed.php Passed 13 tests

The primary PHP file in "Simplicy top posts most viewed" version 1.4 is used by WordPress to initiate all plugin functionality
59 characters long description:
Afficher vos article les plus consulter dans votre sidebar.

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
Good job! No executable or dangerous file extensions detected485 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210160467
CSS11218

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin