84% posts-category-by-atlas

Code Review | Posts category by Atlas

WordPress plugin Posts category by Atlas scored84%from 54 tests.

About plugin

  • Plugin page: posts-category-by...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2020
  • Latest release: Jun 25, 2020
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: atlas89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /413 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.27ms] Passed 4 tests

An overview of server-side resources used by Posts category by Atlas
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.52 ▼4.52
Dashboard /wp-admin3.34 ▲0.0348.53 ▼1.29
Posts /wp-admin/edit.php3.39 ▲0.0345.27 ▼3.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.89 ▼10.83
Media Library /wp-admin/upload.php3.26 ▲0.0335.21 ▼2.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Posts category by Atlas
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.36 ▼0.941.81 ▲0.1543.53 ▼0.37
Dashboard /wp-admin2,206 ▲155.03 ▼0.79107.75 ▼12.1840.27 ▼6.15
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0234.47 ▼0.3633.75 ▼1.64
Add New Post /wp-admin/post-new.php1,514 ▼1017.60 ▼5.54666.23 ▼16.7352.22 ▲2.87
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0297.77 ▼1.1042.86 ▼0.77

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_wp_atl_category_post

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)
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/posts-category-by-atlas/wp-atl-category-post.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
1 plugin tags: posts category

posts-category-by-atlas/wp-atl-category-post.php 85% from 13 tests

"Posts category by Atlas" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("posts-category-by-atlas.php" instead of "wp-atl-category-post.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin134 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1192595
PO File1111139

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ 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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin