73% advanced-what-should-we-write-about-next

Code Review | Advanced What should we write next about

WordPress plugin Advanced What should we write next about scored73%from 54 tests.

About plugin

  • Plugin page: advanced-what-sho...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2014
  • Latest release: Jun 17, 2015
  • Number of updates: 15
  • Update frequency: every 21.3 days
  • Top authors: riteshsanap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,280 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.52ms] Passed 4 tests

An overview of server-side resources used by Advanced What should we write next about
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.54 ▼5.79
Dashboard /wp-admin3.32 ▲0.0249.50 ▼3.06
Posts /wp-admin/edit.php3.37 ▲0.0251.04 ▲2.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.48 ▼8.07
Media Library /wp-admin/upload.php3.24 ▲0.0138.65 ▲5.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 8 new options
New tables
wp_awtw_plugin
New WordPress options
awtw_plugin_db_version
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
awtw_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Advanced What should we write next about
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.37 ▼0.041.85 ▼0.0943.52 ▲0.94
Dashboard /wp-admin2,217 ▲435.63 ▼0.2286.19 ▼13.5139.65 ▼5.06
Posts /wp-admin/edit.php2,122 ▲192.02 ▲0.0544.70 ▲0.0237.70 ▼5.89
Add New Post /wp-admin/post-new.php1,547 ▲1022.95 ▲4.61653.01 ▲16.3254.21 ▼12.26
Media Library /wp-admin/upload.php1,416 ▲194.16 ▼0.05106.36 ▼2.5447.39 ▲3.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_awtw_plugin
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • awtw_options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • awtw_plugin_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-what-should-we-write-about-next/awtw-table.php on line 49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/advanced-what-should-we-write-about-next/awtw-plugin.php:54
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-what-should-we-write-about-next/awtw-table.php on line 49
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-what-should-we-write-about-next/awtw-table.php on line 49

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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: feedback, ajax, admin, spam, settings

advanced-what-should-we-write-about-next/awtw-plugin.php 77% from 13 tests

This is the main PHP file of "Advanced What should we write next about" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-what-should-we-write-about-next.php" instead of "awtw-plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes

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
No dangerous file extensions were detected719 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4165500601
CSS13070
JavaScript12131
PO File10014
Markdown1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1144.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin