84% popularis-extra

Code Review | Popularis Extra

WordPress plugin Popularis Extra scored 84% from 54 tests.

About plugin

  • Plugin page: popularis-extra
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2019
  • Latest release: Sep 29, 2023
  • Number of updates: 45
  • Update frequency: every 31.6 days
  • Top authors: themes4wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

9,000+ active / 149,013 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.78ms] Passed 4 tests

Server-side resources used by Popularis Extra
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.51 ▲1.42
Dashboard /wp-admin3.35 ▲0.0545.06 ▼2.94
Posts /wp-admin/edit.php3.46 ▲0.1146.06 ▲5.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.91 ▼15.58
Media Library /wp-admin/upload.php3.27 ▲0.0536.76 ▲1.99

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_popularis_about_me
widget_popularis-extra-extended-recent-posts
widget_popularis-extra-popular-posts
widget_popularis_social
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Popularis Extra
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.31 ▼1.454.68 ▲2.9742.67 ▲3.85
Dashboard /wp-admin2,203 ▲145.84 ▲0.88109.29 ▼9.8038.35 ▼4.94
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0239.37 ▼0.3436.72 ▼1.81
Add New Post /wp-admin/post-new.php1,547 ▲3318.33 ▲0.71619.79 ▼16.2669.46 ▲13.75
Media Library /wp-admin/upload.php1,385 ▼34.28 ▲0.0694.01 ▼9.5441.03 ▼2.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_popularis-extra-popular-posts
    • theysaidso_admin_options
    • widget_popularis_social
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_popularis_about_me
    • widget_popularis-extra-extended-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
Good news, no errors were detected

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popularis-extra/library/extra-widgets/popular-posts-widget.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popularis-extra/library/extra-widgets/recent-posts-widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: import, widgets, demo, shortcodes, elementor

popularis-extra/popularis-extra.php 92% from 13 tests

The primary PHP file in "Popularis Extra" version 1.2.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected9,123 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP241,1211,1816,038
CSS10267162,077
JavaScript73041551,008

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity31.77
▷ Minimum class complexity2.00
▷ Maximum class complexity186.00
Average method complexity5.10
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes14.55%
Methods165
▷ Static methods2112.73%
▷ Public methods14990.30%
▷ Protected methods106.06%
▷ Private methods63.64%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.24MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/notify.png57.58KB15.50KB▼ 73.09%
includes/wizard/assets/img/start.png59.89KB19.51KB▼ 67.42%
includes/wizard/assets/img/end.png77.11KB14.79KB▼ 80.82%
img/popularis-logo.png2.08KB1.51KB▼ 27.33%
img/popularis-business.png47.71KB13.60KB▼ 71.49%