84% add-categories-to-pages

Code Review | Add Categories to Pages

WordPress plugin Add Categories to Pages scored 84% from 54 tests.

About plugin

  • Plugin page: add-categories-to...
  • Plugin version: 0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.3
  • WordPress version: 5.9.2
  • First release: Oct 11, 2019
  • Latest release: Nov 24, 2019
  • Number of updates: 3
  • Update frequency: every 14.7 days
  • Top authors: christosgam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 380 total downloads


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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼294.64ms] Passed 4 tests

This is a short check of server-side resources used by Add Categories to Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.26 ▲4.97
Dashboard /wp-admin3.41 ▲0.0132.04 ▼1.07
Posts /wp-admin/edit.php3.65 ▲0.0136.58 ▲0.38
Add New Post /wp-admin/post-new.php6.92 ▼0.0793.41 ▼1,182.41
Media Library /wp-admin/upload.php3.30 ▲0.0029.34 ▲4.54
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page3.2927.75

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Add Categories to Pages
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲6616.01 ▲0.365.67 ▲0.022.18 ▼0.09
Dashboard /wp-admin2,893 ▲356.15 ▲0.02118.04 ▼21.57151.91 ▼8.28
Posts /wp-admin/edit.php2,696 ▲23.24 ▲0.0161.56 ▼4.29141.55 ▼0.14
Add New Post /wp-admin/post-new.php1,761 ▲10021.96 ▲5.51428.11 ▼6.29151.22 ▼2.50
Media Library /wp-admin/upload.php1,703 ▲25.49 ▼0.04143.91 ▼3.22185.29 ▼3.59
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,8812.7755.51132.65

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 detected upon uninstall: 1 option
    • category_children

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
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-categories-to-pages/add-categories-to-pages.php:20

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
No tags were detected

add-categories-to-pages/add-categories-to-pages.php Passed 13 tests

"Add Categories to Pages" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
With this plugin you can finally add categories to pages.

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
No dangerous file extensions were detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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