84% simple-phpexcel-export

Code Review | wp-simple-phpexcel-export

WordPress plugin wp-simple-phpexcel-export scored84%from 54 tests.

About plugin

  • Plugin page: simple-phpexcel-e...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-3.4
  • WordPress version: 6.3.1
  • First release: Jun 27, 2013
  • Latest release: Jun 27, 2013
  • Number of updates: 2
  • Update frequency: every 101.5 days
  • Top authors: mithunp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.40ms] Passed 4 tests

An overview of server-side resources used by wp-simple-phpexcel-export
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0240.61 ▼3.78
Dashboard /wp-admin3.37 ▲0.0250.18 ▼2.23
Posts /wp-admin/edit.php3.42 ▲0.0251.25 ▲0.31
Add New Post /wp-admin/post-new.php5.95 ▲0.0298.47 ▲1.78
Media Library /wp-admin/upload.php3.29 ▲0.0239.04 ▲0.10

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

wp-simple-phpexcel-export: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.58 ▼0.041.80 ▲0.0745.61 ▲1.45
Dashboard /wp-admin2,211 ▲375.64 ▼0.0391.04 ▼26.0041.40 ▼18.95
Posts /wp-admin/edit.php2,113 ▲132.01 ▼0.0239.19 ▼2.2136.41 ▼2.12
Add New Post /wp-admin/post-new.php1,417 ▼11817.83 ▼0.37594.83 ▼9.7654.13 ▼10.91
Media Library /wp-admin/upload.php1,416 ▲164.24 ▼0.01104.84 ▼2.2746.75 ▲1.63

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 3× 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/simple-phpexcel-export/wp-simple-phpexcel-export.php:13
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-phpexcel-export/wp-simple-phpexcel-export.php on line 10
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-phpexcel-export/wp-simple-phpexcel-export.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 () image not found
You can look at the official readme.txt

simple-phpexcel-export/wp-simple-phpexcel-export.php 92% from 13 tests

Analyzing the main PHP file in "wp-simple-phpexcel-export" version 1.0.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-phpexcel-export.php" instead of "wp-simple-phpexcel-export.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151990
Markdown115019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected