83% post-type-comments-for-mycred

Code Review | Post Type Comments for myCRED

WordPress plugin Post Type Comments for myCRED scored83%from 54 tests.

About plugin

  • Plugin page: post-type-comment...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.8-4.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2015
  • Latest release: Dec 23, 2015
  • Number of updates: 5
  • Update frequency: every 4.0 days
  • Top authors: webilop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,648 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.01MB] [CPU: ▼10.93ms] Passed 4 tests

Server-side resources used by Post Type Comments for myCRED
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.06 ▲0.25
Dashboard /wp-admin3.31 ▼0.0447.59 ▼19.57
Posts /wp-admin/edit.php3.36 ▲0.0045.61 ▼10.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.69 ▼14.17
Media Library /wp-admin/upload.php3.23 ▲0.0037.24 ▲1.89

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Post Type Comments for myCRED: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.75 ▲0.0344.44 ▲1.52
Dashboard /wp-admin2,198 ▲215.62 ▲0.0094.48 ▲2.6641.82 ▲0.87
Posts /wp-admin/edit.php2,100 ▲32.02 ▼0.0140.34 ▲5.3939.44 ▲1.77
Add New Post /wp-admin/post-new.php1,528 ▼323.13 ▲0.11679.88 ▲28.1554.24 ▼7.35
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.0199.61 ▼5.9742.55 ▼3.73

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means 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
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 register_activation_hook() in wp-content/plugins/post-type-comments-for-mycred/mycred-post-types-comments.php:28

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 Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: comments, points, mycred, custom post types, reward

post-type-comments-for-mycred/mycred-post-types-comments.php 69% from 13 tests

The primary PHP file in "Post Type Comments for myCRED" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-type-comments-for-mycred.php" instead of "mycred-post-types-comments.php")
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WP 3.8")

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
Everything looks great! No dangerous files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1154694

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions3
▷ Named functions3100.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