83% post-classified-for-docs

Code Review | Post Classfied for making Documentation, Site map, POST List

WordPress plugin Post Classfied for making Documentation, Site map, POST List scored83%from 54 tests.

About plugin

  • Plugin page: post-classified-f...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 13, 2021
  • Latest release: Dec 3, 2021
  • Number of updates: 7
  • Update frequency: every 3.0 days
  • Top authors: codersaiful (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /366 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.18ms] Passed 4 tests

An overview of server-side resources used by Post Classfied for making Documentation, Site map, POST List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.72 ▲0.60
Dashboard /wp-admin3.31 ▲0.0042.22 ▼7.24
Posts /wp-admin/edit.php3.36 ▲0.0043.06 ▼2.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.87 ▼11.17
Media Library /wp-admin/upload.php3.23 ▲0.0035.23 ▲1.65

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Post Classfied for making Documentation, Site map, POST List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲17314.00 ▼0.635.63 ▲3.8642.25 ▼3.40
Dashboard /wp-admin2,208 ▲205.84 ▼0.0696.75 ▼4.8140.64 ▼3.78
Posts /wp-admin/edit.php2,091 ▲22.06 ▲0.0237.04 ▼0.1833.14 ▲1.22
Add New Post /wp-admin/post-new.php1,541 ▲1118.18 ▼0.25606.25 ▼73.7554.89 ▲0.52
Media Library /wp-admin/upload.php1,390 ▼14.22 ▼0.0193.69 ▼8.6340.83 ▼0.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-classified-for-docs/includes/load-scripts.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: product list, category wise post, taxonomy wise post, wp post, site xml...

post-classified-for-docs/init.php 77% from 13 tests

Analyzing the main PHP file in "Post Classfied for making Documentation, Site map, POST List" version 1.1
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-classified-for-docs.php" instead of "init.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin705 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS36627426
PHP563120206
Markdown125072
JavaScript1031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.86
▷ Minimum method complexity2.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin