10% another-one-tips-maker

Code Review | Another One Tips Maker

WordPress plugin Another One Tips Maker scored10%from 54 tests.

About plugin

  • Plugin page: another-one-tips-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Oct 5, 2014
  • Latest release: Oct 5, 2014
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: voodoo911 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /702 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/another-one-tips-maker/modules/widgets.php+76
    Function create_function() is deprecated

Server metrics [RAM: ▼2.10MB] [CPU: ▼61.10ms] Passed 4 tests

Server-side resources used by Another One Tips Maker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.555.19 ▼49.29
Dashboard /wp-admin2.20 ▼1.436.17 ▼56.46
Posts /wp-admin/edit.php2.20 ▼1.487.12 ▼45.08
Add New Post /wp-admin/post-new.php2.20 ▼3.955.91 ▼93.58
Media Library /wp-admin/upload.php2.20 ▼1.297.05 ▼30.08
All Tips /wp-admin/edit.php?post_type=tip2.207.00
Category /wp-admin/edit-tags.php?taxonomy=tip_category&post_type=tip2.207.88
Add New /wp-admin/post-new.php?post_type=tip2.206.16

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Another One Tips Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,485 ▲72417.23 ▲3.0315.87 ▲13.8637.34 ▼8.32
Dashboard /wp-admin2,385 ▲2116.39 ▲0.75114.34 ▲14.5148.87 ▲4.76
Posts /wp-admin/edit.php2,316 ▲2193.58 ▲1.5450.46 ▲13.5831.56 ▼6.34
Add New Post /wp-admin/post-new.php1,553 ▲2217.70 ▼5.47661.54 ▼4.3340.43 ▼9.10
Media Library /wp-admin/upload.php1,451 ▲544.35 ▲0.1382.99 ▼27.0944.63 ▲1.82
All Tips /wp-admin/edit.php?post_type=tip1,3213.5048.4332.55
Category /wp-admin/edit-tags.php?taxonomy=tip_category&post_type=tip1,5793.4141.7633.25
Add New /wp-admin/post-new.php?post_type=tip4,8184.1477.7746.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/another-one-tips-maker/modules/widgets.php+76
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_tips_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tip
    • > Deprecated in wp-content/plugins/another-one-tips-maker/modules/widgets.php+76
    Function create_function() is deprecated
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tip
    • > Warning in wp-content/plugins/another-one-tips-maker/modules/hooks.php+95
    Use of undefined constant ubl_add_tinymce - assumed 'ubl_add_tinymce' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/post-new.php?post_type=tip
    • > Notice in wp-content/plugins/another-one-tips-maker/modules/meta_box.php+330
    Undefined index: post_type

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/another-one-tips-maker/modules/editor_plugin.js.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/another-one-tips-maker/modules/shortcodes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-one-tips-maker/modules/ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-one-tips-maker/modules/meta_box.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/another-one-tips-maker/modules/hooks.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/another-one-tips-maker/modules/shortcodes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-one-tips-maker/modules/cpt.php:70
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/another-one-tips-maker/modules/widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-one-tips-maker/modules/scripts.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tip
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/another-one-tips-maker/modules/js/admin.js?ver=1.0:36:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tip
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

another-one-tips-maker/wp-tipbox-sale.php 92% from 13 tests

The principal PHP file in "Another One Tips Maker" v. 1.1 is loaded by WordPress automatically on each request
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 ("another-one-tips-maker.php" instead of "wp-tipbox-sale.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin28,213 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
CSS161,20339620,085
JavaScript91,2326244,393
Sass1319221,158
LESS1319311,149
SVG200733
PHP1016730686
HTML1309

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
13 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/images/see-it.png9.08KB2.14KB▼ 76.44%
modules/inc/jscolor/hs.png2.62KB7.54KB0.00%
modules/inc/assets_/img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
modules/images/heart.png7.68KB4.22KB▼ 45.09%
modules/inc/assets_/img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%