83% cms-tree-page-view

Code Review | CMS Tree Page View

WordPress plugin CMS Tree Page View scored 83% from 53 tests.

About plugin

  • Plugin page: cms-tree-page-view
  • Plugin version: 1.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.6.0
  • WordPress version: 5.8.1
  • First release: Mar 31, 2010
  • Latest release: Dec 8, 2020
  • Number of updates: 251
  • Update frequency: every 15.6 days
  • Top authors: eskapism (96.02%)jchristopher (4.38%)

Code review

53 tests

User reviews

344 reviews

Install metrics

80,000+ active / 1,258,329 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼278.30ms] Passed 4 tests

A check of server-side resources used by CMS Tree Page View
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.3236.35 ▲11.66
Dashboard /wp-admin3.28 ▲0.2348.03 ▼2.04
Posts /wp-admin/edit.php3.38 ▲0.2845.07 ▲4.00
Add New Post /wp-admin/post-new.php5.64 ▲0.2196.98 ▼1,111.33
Media Library /wp-admin/upload.php3.22 ▲0.2131.24 ▼3.81
Tree View /wp-admin/edit.php?post_type=page&page=cms-tpv-page-page3.2132.14
CMS Tree Page View /wp-admin/options-general.php?page=cms-tpv-options3.1931.11

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 83 new files
Database: no new tables, 4 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for CMS Tree Page View
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,216 ▲61016.84 ▲0.857.51 ▼0.4046.62 ▼3.87
Dashboard /wp-admin3,488 ▲6356.84 ▲1.01159.58 ▲20.30124.23 ▲24.96
Posts /wp-admin/edit.php2,716 ▲102.68 ▲0.0067.23 ▲5.7185.22 ▼1.49
Add New Post /wp-admin/post-new.php1,594 ▼25921.51 ▲2.39257.37 ▼128.17102.34 ▼5.63
Media Library /wp-admin/upload.php1,723 ▼524.99 ▲0.01141.43 ▼5.25115.75 ▲8.22
Tree View /wp-admin/edit.php?post_type=page&page=cms-tpv-page-page1,5393.2474.9882.31
CMS Tree Page View /wp-admin/options-general.php?page=cms-tpv-options1,3083.0569.5868.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 4 options in the database
    • cms_tpv_options
    • cms_tpv_version
    • cms_tpv_show_annoying_little_box
    • cms_tpv_show_promo

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just 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 plugin_dir_url() in wp-content/plugins/cms-tree-page-view/index.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (The page tree in action), #2 (Edit, view and even add multiple pages at once!), #3 (Drag-and-drop to rearrange/change the order of the pages.)
You can look at the official readme.txt

cms-tree-page-view/index.php 85% from 13 tests

"CMS Tree Page View" version 1.6.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cms-tree-page-view.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 305 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin10,396 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PO File241,5511,9823,679

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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 functions4097.56%
▷ Anonymous functions12.44%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
styles/images/switch-view-icons.png0.70KB0.69KB▼ 2.09%
scripts/themes/wordpress/d.png7.30KB2.59KB▼ 64.45%
screenshot-2.png56.84KB26.44KB▼ 53.49%