84% wp-maximum-execution-time-exceeded

Code Review | WP Maximum Execution Time Exceeded

WordPress plugin WP Maximum Execution Time Exceeded scored 84% from 54 tests.

About plugin

  • Plugin page: wp-maximum-execut...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Jan 25, 2021
  • Number of updates: 12
  • Update frequency: every 194.1 days
  • Top authors: Johnnie2u (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

20,000+ active / 224,108 total downloads

Benchmarks

Plugin footprint 82% 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.01MB] [CPU: ▼7.87ms] Passed 4 tests

Server-side resources used by WP Maximum Execution Time Exceeded
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.05 ▼13.92
Dashboard /wp-admin3.31 ▲0.0140.35 ▼7.71
Posts /wp-admin/edit.php3.36 ▲0.0146.80 ▼0.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.11 ▼7.52
Media Library /wp-admin/upload.php3.24 ▲0.0132.51 ▼2.33

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • The plugin illegally modified 1 file (0.62KB) outside of "wp-content/plugins/wp-maximum-execution-time-exceeded/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Maximum Execution Time Exceeded
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.201.90 ▲0.1538.43 ▼5.62
Dashboard /wp-admin2,206 ▲214.88 ▼0.03112.41 ▲8.3743.76 ▼4.30
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0036.63 ▼3.5829.71 ▼6.07
Add New Post /wp-admin/post-new.php1,533 ▼023.05 ▼0.17633.92 ▼35.5150.67 ▼11.82
Media Library /wp-admin/upload.php1,382 ▼64.20 ▲0.0095.31 ▼7.4440.04 ▼4.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-maximum-execution-time-exceeded/wp-maximum-execution-time-exceeded.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-maximum-execution-time-exceeded === )
You can take inspiration from this readme.txt

wp-maximum-execution-time-exceeded/wp-maximum-execution-time-exceeded.php Passed 13 tests

The main PHP file in "WP Maximum Execution Time Exceeded" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
Increase the maximum execution time to 5 minutes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1422423

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected