10% wp-present

Code Review | WP Present - beta

WordPress plugin WP Present - beta scored10%from 54 tests.

About plugin

  • Plugin page: wp-present
  • Plugin version: 0.9.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2013
  • Latest release: Dec 17, 2014
  • Number of updates: 70
  • Update frequency: every 5.9 days
  • Top authors: stevenkword (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,531 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-present/wp-present.php+107
    Non-static method WP_Present_Core::action_init_register_post_type() should not be called statically

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.21ms] Passed 4 tests

A check of server-side resources used by WP Present - beta
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.66 ▼2.38
Dashboard /wp-admin3.31 ▲0.0044.23 ▼2.75
Posts /wp-admin/edit.php3.36 ▲0.0041.71 ▲0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.85 ▼8.47
Media Library /wp-admin/upload.php3.23 ▲0.0035.33 ▲3.31

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 111 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
wp-present-version

Browser metrics Passed 4 tests

A check of browser resources used by WP Present - beta
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▲0.131.71 ▼0.1837.04 ▼9.33
Dashboard /wp-admin2,192 ▲125.55 ▼0.1285.46 ▼13.8439.32 ▼2.87
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0533.99 ▼4.4534.71 ▲2.83
Add New Post /wp-admin/post-new.php1,526 ▼1121.16 ▲2.92641.60 ▼8.7863.10 ▼2.06
Media Library /wp-admin/upload.php1,394 ▼64.16 ▼0.01102.60 ▲4.5146.97 ▲0.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • wp-present-version
    • 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 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Present_Connect' not found in wp-content/plugins/wp-present/inc/class-wp-present-singleton.php:68
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Image_Control' not found in wp-content/plugins/wp-present/inc/class-customizer-background-image-control.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-present/templates/slide.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-present/inc/class-wp-present-settings.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-present/inc/class-wp-present-video-player.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-present/wp-present.php:67
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-present/templates/embed.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-present/inc/class-wp-present-taxonomy-bridge.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-present/inc/class-wp-present-connect.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-present/inc/class-modal-customizer.php:31

User-side errors Passed 1 test

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

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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

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

The main file in "WP Present - beta" v. 0.9.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Create interactive slide presentations, the WordPress way

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin11,073 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
CSS196004423,349
JavaScript291,1121,1743,134
PHP133987841,730
HTML10325161,416
Markdown42840627
Sass1113867409
SVG200363
JSON10045

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity21.20
▷ Minimum class complexity3.00
▷ Maximum class complexity113.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods99
▷ Static methods99.09%
▷ Public methods8181.82%
▷ Protected methods00.00%
▷ Private methods1818.18%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants39
▷ Global constants820.51%
▷ Class constants3179.49%
▷ Public constants31100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/reveal.js/examples/assets/image2.png10.00KB5.27KB▼ 47.25%
js/reveal.js/examples/assets/image1.png21.48KB8.50KB▼ 60.42%