10% move-posts-from-uncategorized-category

Code Review | Move Posts from Uncategorized

WordPress plugin Move Posts from Uncategorized scored 10% from 54 tests.

About plugin

  • Plugin page: move-posts-from-u...
  • Plugin version: 2017.08.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8.0
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Jul 13, 2017
  • Number of updates: 15
  • Update frequency: every 104.3 days
  • Top authors: christopherross (73.33%)horshipsrectors (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,750 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/move-posts-from-uncategorized-category/move-posts-from-uncategorized.php+45
    include_once(horshipsrectors-common.php): failed to open stream: No such file or directory

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

Server-side resources used by Move Posts from Uncategorized
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.39 ▼3.90
Dashboard /wp-admin3.31 ▲0.0045.78 ▼8.76
Posts /wp-admin/edit.php3.36 ▲0.0048.68 ▲2.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.01 ▼5.75
Media Library /wp-admin/upload.php3.23 ▲0.0033.95 ▼1.10

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Move Posts from Uncategorized
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.192.00 ▲0.0241.93 ▼7.67
Dashboard /wp-admin2,206 ▲275.84 ▲0.96103.63 ▼10.1738.62 ▼4.62
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0640.13 ▲3.2636.66 ▲2.82
Add New Post /wp-admin/post-new.php1,533 ▲1923.34 ▲5.88668.55 ▲7.3648.20 ▼16.18
Media Library /wp-admin/upload.php1,391 ▼04.11 ▼0.09100.41 ▲1.7243.02 ▲0.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

move-posts-from-uncategorized-category/move-posts-from-uncategorized.php 92% from 13 tests

The entry point to "Move Posts from Uncategorized" version 2017.08.13 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("move-posts-from-uncategorized-category.php" instead of "move-posts-from-uncategorized.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2367445

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
No PNG images were found in this plugin