68% nemo-frame

Code Review | nemo Frame

WordPress plugin nemo Frame scored68%from 54 tests.

About plugin

  • Plugin page: nemo-frame
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2015
  • Latest release: Jul 25, 2016
  • Number of updates: 11
  • Update frequency: every 24.8 days
  • Top authors: nemolade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /920 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.77MB] [CPU: ▼31.65ms] Passed 4 tests

Analyzing server-side resources used by nemo Frame
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1336.32 ▼6.25
Dashboard /wp-admin3.17 ▼0.1323.56 ▼24.29
Posts /wp-admin/edit.php3.17 ▼0.1825.38 ▼24.23
Add New Post /wp-admin/post-new.php3.17 ▼2.7124.83 ▼65.13
Media Library /wp-admin/upload.php3.17 ▼0.0622.03 ▼12.95

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
anh_notices
widget_recent-comments
widget_theysaidso_widget
nemoframe_settings
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

nemo Frame: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲24513.80 ▼0.567.15 ▲5.3338.20 ▼0.92
Dashboard /wp-admin2,214 ▲265.08 ▲0.18112.39 ▼0.3236.90 ▼7.81
Posts /wp-admin/edit.php2,100 ▲82.27 ▲0.2840.41 ▲0.1934.45 ▼2.80
Add New Post /wp-admin/post-new.php1,537 ▲2323.43 ▲5.68682.54 ▼8.5071.74 ▲15.30
Media Library /wp-admin/upload.php1,396 ▲84.33 ▲0.1597.63 ▲1.3240.12 ▼2.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'my_plugin_menu' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • anh_notices
    • nemoframe_settings
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/nemo-frame/bootstrap.php
    • > /wp-content/plugins/nemo-frame/views/nemoframe-settings/page-settings-fields.php
    • > /wp-content/plugins/nemo-frame/includes/admin-notice-helper/admin-notice-helper.php
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant WPPS_REQUIRED_PHP_VERSION - assumed 'WPPS_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/nemo-frame/views/requirements-error.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/nemo-frame/views/requirements-error.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/nemo-frame/views/nemoframe-settings/page-settings-fields.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'NEMOFRAME_Module' not found in wp-content/plugins/nemo-frame/classes/nemoframe-settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/nemo-frame/includes/admin-notice-helper/admin-notice.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/nemo-frame/views/nemoframe-settings/page-settings-fields.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/nemo-frame/views/nemoframe.php:1
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/nemo-frame/views/nemoframe-settings/page-settings-fields.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nemo-frame/views/nemoframe-settings/page-settings.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/nemo-frame/views/nemoframe-settings/page-settings-section-headers.php on line 5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
7 plugin tags: nemolade, shortcode, frame, image, nemoframe...

nemo-frame/bootstrap.php 92% from 13 tests

The main PHP script in "nemo Frame" version 1.0.5 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nemo-frame.php" instead of "bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected715 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13219613677
JavaScript181419
Markdown17019
CSS1100

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.17
▷ Minimum class complexity5.00
▷ Maximum class complexity19.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods69
▷ Static methods1927.54%
▷ Public methods5275.36%
▷ Protected methods1623.19%
▷ Private methods11.45%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/blank.png0.27KB0.10KB▼ 61.68%