83% launchpad-popular-posts

Code Review | Launchpad Popular Posts

WordPress plugin Launchpad Popular Posts scored83%from 54 tests.

About plugin

  • Plugin page: launchpad-popular...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1.1
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: May 6, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: vinhdd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.24ms] Passed 4 tests

An overview of server-side resources used by Launchpad Popular Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.15 ▲1.84
Dashboard /wp-admin3.34 ▲0.0448.04 ▼3.13
Posts /wp-admin/edit.php3.40 ▲0.0447.38 ▼2.77
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.23 ▼16.13
Media Library /wp-admin/upload.php3.27 ▲0.0438.83 ▲1.06

Server storage [IO: ▲0.01MB] [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: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_most_popular_post_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Launchpad Popular Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5613.66 ▼0.731.71 ▼0.2239.40 ▼5.33
Dashboard /wp-admin2,224 ▲184.87 ▼1.01101.47 ▼2.7341.15 ▼1.85
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0036.46 ▼4.3336.64 ▲0.50
Add New Post /wp-admin/post-new.php1,548 ▲323.11 ▼0.20690.40 ▲36.2556.06 ▲6.26
Media Library /wp-admin/upload.php1,397 ▼04.28 ▲0.0696.12 ▼4.0943.18 ▲0.61

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_most_popular_post_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/launchpad-popular-posts/includes/popular-posts-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/launchpad-popular-posts/includes/popular-posts-views.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/launchpad-popular-posts/includes/popular-posts-script.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #4 (Launchpad Popular Posts Backend Settings), #5 (Launchpad Popular Posts Backend Settings), #6 (Launchpad Popular Posts Backend Settings), #7 (Launchpad Popular Posts Backend Settings)
Please take inspiration from this readme.txt

launchpad-popular-posts/index.php 77% from 13 tests

The main PHP script in "Launchpad Popular Posts" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("launchpad-popular-posts.php" instead of "index.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin226 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43925186
CSS17840

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin