84% em-dashboard

Code Review | EM Dashboard

WordPress plugin EM Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: em-dashboard
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 6, 2015
  • Latest release: Apr 16, 2023
  • Number of updates: 34
  • Update frequency: every 82.7 days
  • Top authors: Cybr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.18ms] Passed 4 tests

Server-side resources used by EM Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.81 ▲1.69
Dashboard /wp-admin3.52 ▲0.2257.85 ▲7.29
Posts /wp-admin/edit.php3.63 ▲0.2853.94 ▼3.91
Add New Post /wp-admin/post-new.php6.10 ▲0.2189.45 ▼13.63
Media Library /wp-admin/upload.php3.44 ▲0.2144.79 ▲7.13
EM Dashboard /wp-admin/options-general.php?page=em_dashboard_settings3.4139.23

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

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

Browser metrics Passed 4 tests

EM Dashboard: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.13 ▼0.222.16 ▲0.4043.78 ▼1.63
Dashboard /wp-admin2,217 ▲405.56 ▼0.0294.96 ▲2.6643.26 ▲1.23
Posts /wp-admin/edit.php2,122 ▲221.99 ▲0.0235.41 ▼3.6934.70 ▼3.58
Add New Post /wp-admin/post-new.php1,552 ▲2118.60 ▼4.66621.42 ▼67.4364.42 ▼0.13
Media Library /wp-admin/upload.php1,422 ▲224.24 ▲0.0296.67 ▲1.7743.48 ▼1.35
EM Dashboard /wp-admin/options-general.php?page=em_dashboard_settings1,0322.0023.4336.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

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
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'EM_Dashboard_Styles' not found in wp-content/plugins/em-dashboard/inc/classes/options.class.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'EM_Dashboard_Options' not found in wp-content/plugins/em-dashboard/inc/classes/optionspage.class.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/em-dashboard/define.php:20
    • > PHP Fatal error
      require_once(): Failed opening required 'EM_DASHBOARD_LOCALDIRdefine.php' (include_path='.:/usr/share/php') in wp-content/plugins/em-dashboard/load.class.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/em-dashboard/em-dashboard.php:30
    • > PHP Warning
      Use of undefined constant EM_DASHBOARD_LOCALDIR - assumed 'EM_DASHBOARD_LOCALDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/em-dashboard/load.class.php on line 8
    • > PHP Warning
      require_once(EM_DASHBOARD_LOCALDIRdefine.php): failed to open stream: No such file or directory in wp-content/plugins/em-dashboard/load.class.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'EM_Dashboard_Init' not found in wp-content/plugins/em-dashboard/inc/classes/styles.class.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

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
6 plugin tags: admin, easy, multisite, dashboard, layout...

em-dashboard/em-dashboard.php Passed 13 tests

The main PHP script in "EM Dashboard" version 1.1.0 is automatically included on every request by WordPress
74 characters long description:
Redesigned wp-admin screen with easy mode activation to go back to basics.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,441 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS8289741,546
PHP7240597872
JavaScript2134823

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity36.00
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity6.30
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods3193.94%
▷ Protected methods26.06%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin