84% ultimo-wp

Code Review | Ultimo WP

WordPress plugin Ultimo WP scored84%from 54 tests.

About plugin

  • Plugin page: ultimo-wp
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Jul 15, 2016
  • Number of updates: 8
  • Update frequency: every 50.8 days
  • Top authors: aanduque (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /7,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.87ms] Passed 4 tests

Analyzing server-side resources used by Ultimo WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.77 ▲4.86
Dashboard /wp-admin3.42 ▲0.0848.46 ▼16.88
Posts /wp-admin/edit.php3.47 ▲0.1249.66 ▲0.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.33 ▼22.50
Media Library /wp-admin/upload.php3.28 ▲0.0540.00 ▲3.14
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.3534.42

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 767 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Ultimo WP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.26 ▼0.092.33 ▲0.3340.17 ▼0.99
Dashboard /wp-admin2,228 ▲515.63 ▼0.0191.99 ▲2.2347.23 ▲1.83
Posts /wp-admin/edit.php2,142 ▲422.16 ▲0.1644.10 ▲6.4043.21 ▲6.20
Add New Post /wp-admin/post-new.php1,552 ▲1923.58 ▲0.41648.12 ▲47.3157.26 ▲13.13
Media Library /wp-admin/upload.php1,438 ▲444.23 ▲0.0599.47 ▼0.3849.05 ▲3.97
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9742.1827.6933.27

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 237× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig_CompilerInterface' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Compiler.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/ultimo-wp/paradox/vendor/leafo/scssphp/src/Formatter/Nested.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig_Sandbox_SecurityPolicyInterface' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicy.php:17
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimo-wp/views/footer.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/test/Twig/Tests/Node/SpacelessTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Filter' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Node/Expression/Filter/Default.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/test/Twig/Tests/Node/Expression/Binary/AddTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Node/Expression/Test/Defined.php:24
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimo-wp/inc/color-scheme/color-scheme.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Print' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Node/SandboxedPrint.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: custom admin, admin interface, theme, admin theme, admin ui...

ultimo-wp/ultimo-wp.php Passed 13 tests

Analyzing the main PHP file in "Ultimo WP" version 0.1.0
58 characters long description:
Give your WordPress admin a whole new look with Ultimo WP.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected53,867 lines of code in 478 files:
LanguageFilesBlank linesComment linesLines of code
CSS3658658724,617
PHP2834,8098,61219,694
reStructuredText882,2071,9853,062
Sass351,1131143,018
SVG2001,316
Markdown42820970
C1166150793
JSON400198
HTML1310094
XML26147
Bourne Shell212433
C/C++ Header171311
m41215
Twig2204
JavaScript3003
make1002

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.03
▷ Minimum class complexity1.00
▷ Maximum class complexity474.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces4
Interfaces19
Traits0
Classes278
▷ Abstract classes145.04%
▷ Concrete classes26494.96%
▷ Final classes00.00%
Methods1,514
▷ Static methods221.45%
▷ Public methods1,19278.73%
▷ Protected methods31420.74%
▷ Private methods80.53%
Functions71
▷ Named functions6388.73%
▷ Anonymous functions811.27%
Constants45
▷ Global constants12.22%
▷ Class constants4497.78%
▷ Public constants44100.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
19 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo-back.png1.46KB1.38KB▼ 5.63%
assets/img/presets/default.png7.03KB0.53KB▼ 92.46%
assets/img/author.png6.08KB5.94KB▼ 2.20%
assets/img/logo.png1.71KB1.72KB0.00%
paradox/vendor/leafo/scssphp/site/www/img/tile.png0.24KB0.16KB▼ 31.97%